export default [
  {
    name: '新增药品',
    type: 'add',
    position: 1,
    permission: ['admin', 'drug:add'],
    handleClick: 'onAdd'
  },
  {
    name: '批量导入',
    type: 'add',
    position: 1,
    permission: ['admin', 'drug:import'],
    handleClick: 'onBatchImport'
  },
  {
    name: '批量修改预警值',
    type: 'edit',
    position: 1,
    permission: ['admin', 'drug:updateWarning'],
    handleClick: 'onBatchOperation',
    params: [1],
    selections: 2
  },
  {
    name: '批量修改有效标志',
    type: 'edit',
    position: 1,
    permission: ['admin', 'drug:updateStatus'],
    handleClick: 'onBatchOperation',
    params: [2],
    selections: 2
  },
  {
    name: '批量调价',
    type: 'edit',
    position: 1,
    permission: ['admin', 'drug:updatePrice'],
    handleClick: 'onUpdatePrice',
    selections: 0
  },
  {
    name: '查看详情',
    type: 'edit',
    position: 2,
    permission: ['admin', 'drug:details'],
    handleClick: 'onShowDetails'
  },
  {
    name: '编辑',
    type: 'edit',
    position: 2,
    permission: ['admin', 'drug:edit'],
    handleClick: 'onEdit'
  },
  {
    name: '药品导出',
    type: 'download',
    position: 1,
    permission: ['admin', 'drug:outDrugs'],
    handleClick: 'onOutDrugs'
  }
]
